<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Api\Controller;
use Illuminate\Http\Request;
use App\Services\OrderServices;

class OrderController extends Controller
{
    public function my_order(Request $request,OrderServices $orderServices){
        //$request->input();
        $data = $orderServices->get_order_list(auth('api') -> user()->id);
        return $this->success($data);
    }

    public function my_order_info(OrderServices $orderServices){
        $data = $orderServices->my_order_info(auth('api') -> user()->id);
        return $this->success($data);
    }
}
